package com.vision.sales.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;
import com.vision.core.cm.exception.RpcException;
import com.vision.core.cm.serv.rpc.AbstractService;
import com.vision.sales.cl.ui.component.TransactionLoadConfig;
import com.vision.sales.cm.data.TransactionStatus;
import com.vision.sales.cm.db.data.DebitMemo;

@RemoteServiceRelativePath("debit_memo")
public interface DebitMemoService extends AbstractService<DebitMemo> {
	
	PagingLoadResult<DebitMemo> getList(TransactionLoadConfig config) throws RpcException;
	
	List<DebitMemo> getDebitMemos(TransactionStatus status) throws RpcException;
	
	List<DebitMemo> postDebitMemos(List<DebitMemo> debitMemos) throws RpcException;

}
